﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace TM.Model
{
    public class ProjectTask : ObjectBase
    {
        public Guid ID { get; set; }
        public Guid? ParentID { get; set; }
        [Required(ErrorMessage = "Project of task is required")]
        public Guid ProjectID { get; set; }
        [Required(ErrorMessage = "Name of task is required")]
        public string Name { get; set; }

        public string DescDetails { get; set; }
        public Guid TypeID { get; set; }
        public Guid StatusID { get; set; }
        public Guid PriorityID { get; set; }
        public Guid OwnerID { get; set; }
        public decimal? RawEstimation { get; set; }
        public decimal? ActualEstimation { get; set; }
        public DateTime? StartDate { get; set; }
        public decimal? SpentTime { get; set; }
        public decimal? TimeToComplete { get; set; }
        public DateTime? EndDate { get; set; }
        public DateTime CreatedDate { get; set; }
        public string Resources { get; set; }
        public string Scopes { get; set; }
        public string Evidents { get; set; }
        public string Methology { get; set; }

        #region Overrides of ObjectBase

        public override string ObjectName
        {
            get { return "ProjectTask"; }
        }

        #endregion
    }
}
